<script setup lang="ts">

//接收父级传的参数
defineProps<{ name: string }>()



</script>

<template>
   <svg aria-hidden="true" class="cp-icon">
      <use :href="`#icon-${name}`" />
    </svg>
</template>

<style lang="scss" scoped>


.cp-icon {
  width: 1em;
  height: 1em;
}


</style>
